const express = require('express')
const app = express()
var goods = require('./public/data/goods.json')
var ratings = require('./public/data/ratings.json')
var seller = require('./public/data/seller.json')
module.exports = {
    devServer: {
        before(app) {
            app.get('/api/goods', (req, res) => {
                res.json(goods)
            })
            app.get('/api/ratings', (req, res) => {
                res.json(ratings)
            })
            app.get('/api/seller', (req, res) => {
                res.json(seller)
            })
        }
    }
}